home *** CD-ROM | disk | FTP | other *** search
- Path: newsfeed.direct.ca!usenet
- From: "Jatinder S. Toor" <jtoor@direct.ca>
- Newsgroups: comp.lang.c++
- Subject: Re: How to get Beep??
- Date: Wed, 17 Jan 1996 15:30:37 -0800
- Organization: Internet Direct
- Message-ID: <30FD869D.1960@direct.ca>
- References: <4djthp$o2o@hermes.louisville.edu>
- NNTP-Posting-Host: 204.174.248.110
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b5 (Win95; I; 16bit)
-
- Billy Boone wrote:
- >
- > I was wondering how I could get a Beep similar to Visual Basic's Beep
- > statement in Visual C++ 1.5. I want a beep when I give the user error
- > messages. Is it an API or is it a MFC function??
- >
- > I know in C adding a \a gets you a beep but I want to utilize the
- > AfxMessageBox to display my error message but I also want to have a beep to
- > alert the user of the error.
- >
- > Any help would be greatly appreciated.
- >
- > Billy
-
- MessageBeep(-1);
-
- will perform the desired effect. I believe that there an API and a class
- member function versions of this. Check the online help.
-
- Regards
-
- Jay Toor
- jtoor@direct.ca
-